Component({
  options: {
    addGlobalClass: true
  },
  properties: {
    order:Object
  },
  observers: {
    'order': function (order) {
      if(order && order.takeInfo) {
        let takeInfo = JSON.parse(order.takeInfo);
        this.setData({takeInfo})
      }
    }
  },
  data: {
    visible: false,
    takeInfo: [],
  },
  methods: {
    handleClose () {
      this.setData({visible: false})
    },
    handleStop () {
      return true;
    },
    open() {
      this.setData({visible: true})
    }
  }
});
